package com.duan.boot.service;

import com.duan.boot.entity.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsService {
    News getById(Long id);

    Integer insertOaNews(@Param("news") News news);

    List<News> findAll();

    List<News> getByType(Integer newsType);

    Integer getNumberOfNews();

    List<News> pagedQuery(Integer page, Integer numberOfPage);

    Integer pagedQueryPage(Integer numberOfPage);
}
